package //~ defaultPackage ~//
{
	import flash.display.InteractiveObject;
	
	import memorphic.slide.IStateView;
	import memorphic.slide.SlidePresModelBase;
	import memorphic.slide.debugger.SlideDebugger;

	public class SamplrAppMain extends SlidePresModelBase
	{
		private var rootView:ISamplrAppProps;
		
		private var stateManager:SamplrStateManager;
		
		public function SamplrAppMain(view:IStateView)
		{
			super(view);
			this.rootView = ISamplrAppProps(view);
			
			initApp();
		}
		
		private function initApp():void
		{
			rootView.stateManager = new SamplrStateManager();
			
			SlideDebugger.initContextMenu(view as InteractiveObject);
		}
	}
}